package cn.zhuoluodada.opensource.smartdb.datasource;


import java.io.Closeable;
import java.sql.Connection;
import java.sql.SQLException;

/**
 * SmartDb重新包装了一次数据源group,为了做读写分离
 *
 * @author zhuoluodada@qq.com
 */
public interface SmartDbDataSourceGroup extends Closeable{

    Connection getConnection(OptEnum opt) throws SQLException;

    void releaseConnection(OptEnum opt, Connection connection);

}
